export default {
  namespaced: true,
  state: {
    module2: 1
  },
  getters: {
    modulecopy(state, getters) {
      return state.module2 + 1
    }
  },
  mutations: {
    setModules(state, pre) {
      state.module2 = pre
    }
  },
  actions: {
    setDataM1(store, params) {
      console.log(store, params);
      store.commit('setModules', params)
    }
  }
}